﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
using System.Configuration;

namespace JXT.PrimaryKey.Batman.Core.Configuration
{
    /// <summary>
    /// WEB配置管理Section
    /// </summary>
    public class WebConfigurationSection : ServiceConfigurationSection
    {
        /// <summary>
        /// 验证码Key
        /// </summary>
        [ConfigurationProperty("verifyCodeKey", IsRequired = true)]
        public string VerifyCodeKey
        {
            get { return this["verifyCodeKey"] as string; }
            set { this["verifyCodeKey"] = value; }
        }

        /// <summary>
        /// 服务配置节点
        /// </summary>
        [ConfigurationProperty("serviceConfiguration", IsRequired = true)]
        public ServiceConfigurationElement ServiceConfiguration
        {
            get { return this["serviceConfiguration"] as ServiceConfigurationElement; }
            set { this["serviceConfiguration"] = value; }
        }

        /// <summary>
        /// 用户Membership配置节点
        /// </summary>
        [ConfigurationProperty("membershipConfiguration", IsRequired = true)]
        public MembershipConfigurationElement MembershipConfiguration
        {
            get { return this["membershipConfiguration"] as MembershipConfigurationElement; }
            set { this["membershipConfiguration"] = value; }
        }
    }
}
